package com.kevin.service.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.kevin.service.base.BaseEntity;
import com.fhs.core.trans.anno.Trans;
import com.fhs.core.trans.constant.TransType;
import com.fhs.core.trans.vo.TransPojo;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import java.math.BigDecimal;
import java.util.List;

/**
 * sysuser 实体类
 *
 * @author makejava
 * @date 2023-04-06
 */
@TableName(value = "sys_user", autoResultMap = true)
@EqualsAndHashCode(callSuper = true)
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
public class SysUser extends BaseEntity {

    /** 用户名 */
    @ApiModelProperty(value = "用户名")
    @TableField("username")
    private String username;

    /** 密码 */
    @ApiModelProperty(value = "密码")
    @TableField("password")
    private String password;

    /** 姓名 */
    @ApiModelProperty(value = "姓名")
    @TableField("real_name")
    private String realName;

    /** 头像 */
    @ApiModelProperty(value = "头像")
    @TableField("avatar")
    private String avatar;

    /** 性别   0：男   1：女   2：未知 */
    @ApiModelProperty(value = "性别   0：男   1：女   2：未知")
    @TableField("gender")
    private Integer gender;

    /** 邮箱 */
    @ApiModelProperty(value = "邮箱")
    @TableField("email")
    private String email;

    /** 手机号 */
    @ApiModelProperty(value = "手机号")
    @TableField("mobile")
    private String mobile;

    /** 机构ID */
    @ApiModelProperty(value = "机构ID")
    @TableField("org_id")
    private Long orgId;

    /** 超级管理员   0：否   1：是 */
    @ApiModelProperty(value = "超级管理员   0：否   1：是")
    @TableField("super_admin")
    private Boolean superAdmin;

    /** 状态  0：停用   1：正常 */
    @ApiModelProperty(value = "状态  0：停用   1：正常")
    @TableField("status")
    private Integer status;

    @TableField(exist = false)
    private List<String> permissionList;

    @TableField(exist = false)
    private List<String> roleList;

    @TableField(exist = false)
    private List<Long> roleIdList;
}

